package com.forcht.common.domain;

import lombok.*;

import java.util.Arrays;

/**
 * Created by forcht on 2018/4/11.
 * 消息
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Message {
    //消息头部
    private MessageHeader header;
    //消息体
    private byte[] body;

    @Override
    public String toString() {
        return "Message{" +
                "header=" + header +
                ", body=" + new String(body) +
                '}';
    }
}
